<template>
	<view class="content">
		<view class="title">
			<image src="../../static/images/icon/gantanhao.png" mode=""></image>
			<text>若想更换银行卡号，请联系客服</text>
		</view>
		<view class="bj">
			<view class="top">
				<text>账户余额(元)</text>
				<text>56,250.00</text>
			</view>
			<view class="bottom">
				<view>
					<text>已结算金额(元)</text>
					<text>25610.00</text>
				</view>
				<view>
					<text>已结算金额(元)</text>
					<text>25610.00</text>
				</view>
			</view>
		</view>
		<!-- 银行卡类型 -->
		<view class="card">
			<text>银行卡类型</text>
			<view>
				<text style="color: red;">待完善</text>
				<uni-icons type="arrowright"></uni-icons>
			</view>
		</view>

		<view class="card">
			<text>我的银行卡</text>
			<view @tap="add">
				<text style="color: red;">待完善</text>
				<uni-icons type="arrowright"></uni-icons>
			</view>
		</view>

		<border></border>
		<view class="card" @tap="tixian">
			<text>提现</text>
			<view>
				<uni-icons type="arrowright"></uni-icons>
			</view>
		</view>
		<view class="card">
			<text>转账</text>
			<view>
				<uni-icons type="arrowright"></uni-icons>
			</view>
		</view>
		<view class="card">
			<text>账单</text>
			<view>
				<uni-icons type="arrowright"></uni-icons>
			</view>
		</view>

		<!-- 客服 -->
		<view class="kefu">
			<image src="../../static/images/icon/kefu.png" mode=""></image>
			<text>联系客服</text>
		</view>
	</view>
</template>

<script>
	import border from '../../components/border.vue'
	export default {
		data() {
			return {

			}
		},
		methods: {
			tixian(){
				uni.navigateTo({
					url: '../tixian/tixian',
				});
			},//体现
			add(){
				uni.navigateTo({
					url:'../addyhk/addyhk'
				})
			},//添加银行卡
		},
		components: {
			border
		}
	}
</script>

<style scoped lang="scss">
	.kefu {
		width: 100%;
		height: 228upx;
		display: flex;
		align-items: center;
		justify-content: center;

		image {
			width: 30upx;
			height: 30upx;
		}

		;
	}

	// 客服

	.card:nth-last-child(1) {
		border-bottom: none;
	}

	.card {
		display: flex;
		width: 100%;
		height: 100upx;
		padding: 0 30upx;
		box-sizing: border-box;
		border-bottom: 1px solid #ececec;
		justify-content: space-between;
		align-items: center;

		text {
			font-size: 30upx;
		}
	}

	// 银行卡类型
	.top text:nth-child(1) {
		color: #ffffff;
		opacity: 0.8;
		font-size: 28upx;
	}

	.top text:nth-child(2) {
		font-size: 80upx;
		letter-spacing: 0rpx;
		color: #ffffff;
	}

	.bj {
		display: flex;
		flex-direction: column;
		height: 411upx;
		background: url(../../static/images/bf.png);

		.top {
			flex: 1;
			display: flex;
			flex-direction: column;
			align-items: center;

			text {
				flex: 1;
				display: flex;
				align-items: center;
			}
		}

		.bottom {
			flex: 1;
			display: flex;
			justify-content: center;
			align-items: center;

			view {
				display: flex;
				flex-direction: column;
				flex: 1;
				text-align: center;
			}
		}
	}

	.bottom view text:nth-child(1) {
		color: #ffffff;
		opacity: 0.5;
		font-size: 24upx;
	}

	.bottom view text:nth-child(2) {
		color: #ffffff;
		opacity: 0.8;
		font-size: 36upx;
		line-height: 50upx;
		margin-top: 20upx;
	}

	// 余额背景

	.title {
		display: flex;
		align-items: center;
		padding: 0 30upx;
		box-sizing: border-box;
		background-color: rgb(254, 240, 241);
		height: 100upx;

		image {
			width: 30upx;
			height: 30upx;
		}

		text {
			color: red;
			text-indent: .5rem;
			font-size: 24upx;
		}
	}

	.content {
		height: 100%;
	}
</style>
